package com.yjd.pub.asynmsg.dao;

import com.yjd.comm.asynmsg.model.TaskMsgModel;
import com.yjd.comm.base.dao.IBaseDao;

import java.util.Map;

/**
 * <b>description</b>：任务消息数据访问接口<br>
 * <b>time</b>：2015-01-26 18:47:03 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public interface ITaskMsgDao extends IBaseDao {

	/**
	 * 删除任务消息
	 * 
	 * @param paramMap
	 * @param write
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("rawtypes")
	public int deleteTaskMsg(Map paramMap, boolean write) throws Exception;

	/**
	 * 添加任务消息
	 * 
	 * @param taskMsgModel
	 * @param write
	 * @return
	 * @throws Exception
	 */
	public TaskMsgModel insertTaskMsg(TaskMsgModel taskMsgModel, boolean write)
			throws Exception;

	/**
	 * 更新任务消息
	 * 
	 * @param taskMsgModel
	 * @param write
	 * @return
	 * @throws Exception
	 */
	public int updateTaskMsg(TaskMsgModel taskMsgModel, boolean write)
			throws Exception;

	/**
	 * 添加任务消息日志
	 * 
	 * @param taskMsgModel
	 * @param write
	 * @return
	 * @throws Exception
	 */
	public TaskMsgModel insertTaskMsgLog(TaskMsgModel taskMsgModel,
                                         boolean write) throws Exception;
}